
package com.insigma.business.qrcode.common._consumer.impl;


import com.insigma.business.qrcode.common._consumer.CommonRepresentationRecordConsumer;
import com.insigma.business.qrcode.common._provider.CommonRepresentationRecordProvider;
import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.common.vo.BaseResponse;
import com.insigma.business.qrcode.soldier.dto.CommonRepresentationRecordDTO;
import com.insigma.business.qrcode.soldier.request.BaseGetRequest;
import com.insigma.business.qrcode.soldier.request.CommonRepresentationRecordInsertRequest;
import com.insigma.business.qrcode.soldier.request.CommonRepresentationRecordSearchRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("commonRepresentationRecordConsumer")
public class CommonRepresentationRecordConsumerImpl implements CommonRepresentationRecordConsumer {

    @Resource
    private CommonRepresentationRecordProvider commonRepresentationRecordProvider;

    
    @Override
    public BasePagingResponse<List<CommonRepresentationRecordDTO>> searchCommonRepresentationRecord(final CommonRepresentationRecordSearchRequest searchRequest) {
        return commonRepresentationRecordProvider.searchCommonRepresentationRecord(searchRequest);
    }

   
    @Override
    public BaseResponse<CommonRepresentationRecordDTO> getCommonRepresentationRecord(final BaseGetRequest baseGetRequest) {
        return commonRepresentationRecordProvider.getCommonRepresentationRecord(baseGetRequest);
    }

    
    @Override
    public BaseResponse<String> insertCommonRepresentationRecord(final CommonRepresentationRecordInsertRequest insertRequest) {
        return commonRepresentationRecordProvider.insertCommonRepresentationRecord(insertRequest);
    }

}
